<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Models
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: news.php 1057 2010-03-23 18:35:46Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/models/news.php $
*/


class News extends GeneralModel {

/******************************************************************************/

var $name = 'News';

var $hasAndBelongsToMany = array(
	'Item',
	'Project'
);

var $displayImage = 'thumbnail';
var $displayField = 'caption';

var $order = array(
	'News.published' => 'DESC',
	'News.id' => 'DESC'
);

var $actsAs = array(
	'Admin.Automate',
	'Containable'
);

var $fieldInputSchema = array(
	'image' => array('params' => 'resize=max&x=1000&y=750'),
	'thumbnail' => array('params' => 'source=image&resize=crop&x=160&y=160')
);

/******************************************************************************/

}


?>